package com.jihe.ehmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jihe.common.utils.PageUtils;
import com.jihe.ehmall.product.entity.AttrEntity;
import com.jihe.ehmall.product.vo.AttrCatelogAttrGroupVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * ??Ʒ?
 *
 * @author zyw
 * @email zyw@gmail.com
 * @date 2021-09-07 14:21:26
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageBaseByCatId(@Param("params") Map<String, Object> params, @Param("catId") Long catId , String type);

    void saveDetail( AttrCatelogAttrGroupVo attrCatelogAttrGroupVo);

    void updateDetail(AttrCatelogAttrGroupVo attrCatelogAttrGroupVo);

    AttrCatelogAttrGroupVo getAttrInfoAll(Long attrId);

    void removeDetailByIds(List<Long> asList);

    List<AttrEntity> queryPageAttrRelation(Long attrGroupId);


    PageUtils queryPageNoAttrRelation(@Param("params") Map<String, Object> params, @Param("attrGroupId") Long attrGroupId);

}

